package com.cz.datafetcher.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "fetchData")
@ApiModel("获取到的数据")
public class FetchData {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @TableField("fetchBeginTime")
    @ApiModelProperty("采集数据开始时间")
    private Date fetchBeginTime;
    @TableField("fetchEndTime")
    @ApiModelProperty("采集数据结束时间")
    private Date fetchEndTime;
    @TableField(value = "fetchData")
    @ApiModelProperty("本次数据")
    private BigDecimal fetchData;
    @TableField(value = "fetchDevicesId")
    @ApiModelProperty("采集设备id")
    private  Integer fetchDevicesId;
    @TableField(value = "lastData")
    @ApiModelProperty("上次数据")
    private  BigDecimal lastData;
    @TableField(value = "growth")
    @ApiModelProperty("增长量")
    private BigDecimal growth;
    @TableField(value = "createTime")
    @ApiModelProperty("获取时间")
    private  Date createTime;
}
